package com.example.bootintegration.entity;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.concurrent.TimeUnit;

/**
 * @author Quintoy
 * @date 06/06/23
 */

@Builder(toBuilder = true)
@NoArgsConstructor
@AllArgsConstructor
public class User {


    private BigDecimal amount;

    private String name;

    public String getName() {
        return name;
    }

    public void setName1(String name) {
        this.name = name;
    }

    public BigDecimal getAmount() {
        return amount;
    }

    public void setAmount(BigDecimal amount) {
        this.amount = amount;
    }

    public void init() {
        try {
            System.out.println(Thread.currentThread().getName());
            TimeUnit.SECONDS.sleep(3);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
    }

    // @Override
    // public Object clone() throws CloneNotSupportedException {
    //     return super.clone();
    // }
}
